#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
class G:
    def test(self):
        print("test G")

class D(G):
    def test(self):
        print("test D")

class F(G):
    def test(self):
        print("test F")

class C(F):
    def test(self):
        print("test C")

class E(G):
    def test(self):
        print("test E")

class B(E):
    def test(self):
        print("test B")

class A(B,C,D):
    def test(self):
        print("test A")

a=A()
a.test()
print(A.mro())